package com.hrt.manage.order.service;

import java.sql.Timestamp;
import java.util.List;




import com.hrt.bean.HRTMember;
import com.hrt.bean.OrderInfor;
import com.hrt.vo.OrderDetailVO;
import com.hrt.vo.OrderInforVO;

public interface OrderInforService {
	public Long totalCount();

	public void  deleteById( Long[] ids) throws Exception;

	public void saveOrder(OrderInfor orderInfor)throws Exception;

	public	List queryByPage(int pageIndex, int pageSize);

	public void updateOrder(OrderInfor orderInfor);

	public OrderInfor getOrderByid(Long orderId);
	
	public HRTMember queryByName(String name);
	
	/**
	 *将OrderInforVO转换为OrderInfor
	 * @param vo
	 * @return
	 */
	public OrderInfor saveOrderInfor(OrderInforVO vo, List<OrderDetailVO> ods);
	/**
	 *将OrderInforVO转换为OrderInfor
	 * @param vo
	 * @return
	 */
	public void updateOrderInfor(OrderInforVO vo,List<OrderDetailVO> ods);

	public List<OrderInfor> loadOrders();
	/**
	 * 获取数据库当前时间
	 * @return
	 */
	public Timestamp getDate();
	/**
	 * 发货
	 * 
	 */
	public void sendGoodsById(Long[] ids)throws Exception;
	/**退货*/
	public void returnGoodsById(Long[] ids)throws Exception;
	/**退款*/
	public void returnMoneyById(Long[] ids)throws Exception;
	/**
	 * 根据时间查询订单
	 */
	public List<OrderInfor> getOrderByTime(java.sql.Date startTime,java.sql.Date endTime);
	
}
